<?php

namespace app\model;

use think\Model;

class Buju extends Model
{
    public static function getAll()
    {
        return self::where('status', 1)->where('isdelete', 0)
            ->order('sort', 'ASC')
            ->limit(5)
            ->select();
    }

    public function getPoster1Attr($v)
    {
        return config('site.imgUrl') . $v;
    }

    public function getPoster2Attr($v)
    {
        return config('site.imgUrl') . $v;
    }
}
